package graphs;

// Used for adding measurements to the graph
import mechanics.Meting;

// Needed for registration of the time
import org.jfree.data.time.Second;

/**
 * The RealtimeGraph class creates a graphic showing data coming from the
 * sensors in real time
 * 
 * @version 31-03-2009
 */
public class RealtimeGraph extends Graph {

	/**
	 * Constructor sets the parameters for the super constructor
	 */
	public RealtimeGraph() {
		// Make a method call to the super constructor
		super("Grafische Weergave", 30);
	}

	/**
	 * Adds a measurement to the graph
	 * 
	 * @param meting The measure to add
	 */
	public void addMeting(Meting meting) {
		// Get the time as a second
		Second second = new Second();

		// Add the measurement to the graph
		super.addMeting(second, meting);
	}
}